﻿using Forum.Model;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Forum.Service.ForumHub
{
    public class ServerHub : Hub
    {
        protected readonly ILogger<ServerHub> _logger;
        public ServerHub(ILogger<ServerHub> logger)
        {
            _logger = logger;
        }


        //public async Task SendMessage(string msg)
        //{
        //    await Clients.All.SendAsync("SiteMsg", "curry：" + msg + Environment.NewLine);
        //}
    }
}
